CC = gcc
CFLAGS = -Wall
SRC = src
OBJ = obj
BIN = bin

all:
	@$(CC) -c $(SRC)/PI.c -o $(OBJ)/PI.o
	@$(CC) $(OBJ)/PI.o -o $(BIN)/PI
	@echo completed compilation

run:
	@echo running...
	@./$(BIN)/PI

time:
	@/usr/bin/time -f "%e" ./$(BIN)/PI

clear:
	@echo clearing all objects and executables files
	@rm $(BIN)/* $(OBJ)/*.o 

#tar: 
#	@echo compressing the project
#	@tar -cvsf PI_seq.tar.gz $(BIN)/* $(SRC)/*.c $(OBJ)/*.o Makefile
